Interpolation methodsNumber or Array linear(t, value1, value2) {t is a number, and value1 and value2 are numbers or arrays} Returns a value that linearly interpolates from value1 to value2 as t ranges from 0 to 1. Returns the value of value1 when t is l <= 0. Returns the value of value2 when t is >= 1. Number or Array linear(t, tMin, tMax, value1, value2) {t, tMin, and tMax are numbers, and value1 and value2 are numbers or arrays} Returns the value of value1 when t <= tmin1. Returns the value of value2 when t >= tMax. Returns a value that is a linear combination of value1 and value2 when tMin < t < tMax. Number or Array ease(t, value1, value2) {t is a number, and value1 and value2 are numbers or arrays} Returns a value that is similar to linear, except that the interpolation eases in and out so that the velocity is 0 at the start and end points. This method results in a very smooth animation. Number or Array ease(t, tMin, tMax, value1, value2) {t, tMin, and tMax are numbers, and value1 and value2 are numbers or arrays} Returns a value that is similar to linear, except that the interpolation eases in and out so that the velocity is 0 at the start and end points. This method results in a very smooth animation. Number or Array easeIn(t, value1, value2) {t is a number, and value1 and value2 are numbers or arrays} Returns a value that is similar to ease, except that the tangent is 0 only on the value1 side and is linear on the value2 side. Number or Array easeIn(t, tMin, tMax, value1, value2) {t, tMin, and tMax are numbers, and value1 and value2 are numbers or arrays} Returns a value that is similar to ease, except that the tangent is 0 only on the tMin side and is linear on the tMax side. Number or Array easeOut(t, value1, value2) {t is a number, and value1 and value2 are numbers or arrays} Returns a value that is similar to ease, except that the tangent is 0 only on the value2 side and is linear on the value1 side. Number or Array easeOut(t, tMin, tMax, value1, value2) {t, tMin, and tMax are numbers, and value1 and value2 are numbers or arrays} Returns a value that is similar to ease, except that the tangent is 0 only on the tMax side and is linear on the tMin side. |